#include "BoneOrientation.h"

BoneOrientation::BoneOrientation(float length, float lengthCoefficient,
					float lengthSpeed, float lengthSpeedCoefficient,
					float angle, float angleCoefficient, 
	                float speed, float speedCoefficient,
	                float time, float timeCoefficient)
{
	this->length = length;
	this->lengthCoefficient = lengthCoefficient;
	this->lengthSpeed = lengthSpeed;
	this->lengthSpeedCoefficient = lengthSpeedCoefficient;
	this->angle = angle;
	this->angleCoefficient = angleCoefficient;
	this->speed = speed;
	this->speedCoefficient = speedCoefficient;
	this->time = time;
	this->timeCoefficient = timeCoefficient;
}
BoneOrientation::BoneOrientation(float length, float angle)
{
	this->length = length;
	this->lengthCoefficient = 0.0;
	this->lengthSpeed = 0.0;
	this->lengthSpeedCoefficient = 0.0;
	this->angle = angle;
	this->angleCoefficient = 0.0;
	this->speed = 0.0;
	this->speedCoefficient = 0.0;
	this->time = 0.0;
	this->timeCoefficient = 0.0;
}
BoneOrientation::BoneOrientation(float length, float angle, float time)
{
	this->length = length;
	this->lengthCoefficient = 0.0;
	this->lengthSpeed = 1.0;
	this->lengthSpeedCoefficient = 0.0;
	this->angle = angle;
	this->angleCoefficient = 0.0;
	this->speed = 1.0;
	this->speedCoefficient = 0.0;
	this->time = time;
	this->timeCoefficient = 0.0;
}
BoneOrientation::BoneOrientation(float length, float angle, float lengthSpeed,float speed, float time)
{
	this->length = length;
	this->lengthCoefficient = 0.0;
	this->lengthSpeed = lengthSpeed;
	this->lengthSpeedCoefficient = 0.0;
	this->angle = angle;
	this->angleCoefficient = 0.0;
	this->speed = speed;
	this->speedCoefficient = 0.0;
	this->time = time;
	this->timeCoefficient = 0.0;
}	
BoneOrientation::BoneOrientation()
{
	this->length = 0.0;
	this->lengthCoefficient = 0.0;
	this->lengthSpeed = 0.0;
	this->lengthSpeedCoefficient = 0.0;
	this->angle = 0.0;
	this->angleCoefficient = 0.0;
	this->speed = 0.0;
	this->speedCoefficient = 0.0;
	this->time = 0.0;
	this->timeCoefficient = 0.0;
}
float BoneOrientation::GetLength()
{
	return length;
}
float BoneOrientation::GetLengthCoefficient()
{
	return lengthCoefficient;
}
float BoneOrientation::GetAngle()
{
	return angle;
}
float BoneOrientation::GetAngleCoefficient()
{
	return angleCoefficient;
}
float BoneOrientation::GetSpeed()
{
	return speed;
}
float BoneOrientation::GetSpeedCoefficient()
{ 
	return speedCoefficient;
}
float BoneOrientation::GetTime()
{
	return time;
}
float BoneOrientation::GetTimeCoefficient()
{
	return timeCoefficient;
}
void BoneOrientation::SetAngle(float angle)
{
	this->angle = angle;
}
void BoneOrientation::SetSpeed(float speed)
{
	this->speed = speed;
}
void BoneOrientation::SetLength(float length)
{
	this->length = length;
}
float BoneOrientation::GetLengthSpeed()
{
	return lengthSpeed;
}
float BoneOrientation::GetLengthSpeedCoefficient()
{
	return lengthSpeedCoefficient;
}
void BoneOrientation::SetLengthSpeed(float speed)
{
	lengthSpeed = speed;
}
void BoneOrientation::SetTime(float time)
{
	this->time = time;
}